﻿/**********************************天使物流*******************************************
* 功能描述:合同管理-通用合同
* 作者:石锦涛
* 时间:2022-01-08
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.Contract.NewGeneralContras
{
    public interface INewGenerAppRepository
    {
        /// <summary>
        /// 通用合同显示
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<NewGeneralContraDto>> GetResponse(string telet, string danwei, string principal, string operators, string dtime, int? state, int pageindex = 1, int pagesize = 5);
        /// <summary>
        /// 通用逻辑删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<PageResponse<NewGeneralContraDto>> DeleteGeneral(int Id);
        /// <summary>
        /// 通用修改
        /// </summary>
        /// <param name="contraDto"></param>
        /// <returns></returns>
        Task<PageResponse<int>> UpdateGeneral(NewGeneralContraDto contraDto);
        /// <summary>
        /// 通用添加
        /// </summary>
        /// <param name="contraDto"></param>
        /// <returns></returns>
        Task<PageResponse<int>> PostGeneral(NewGeneralContraDto contraDto);
        /// <summary>
        /// 通用批量删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        Task<PageResponse<NewGeneralContraDto>> DeletEmoreGeneral(string Id);

    }
}
